<?php
/**
 * 商品路由
 */
$api->group(['namespace' => 'Goods'], function ($api){
    $api->get('getgoodslist', 'GoodsController@getGoodsList'); //获取商品信息
    $api->get('getgoodsitem/id/{id}', 'GoodsController@getItem'); //获取单个商品
    $api->get('searchlists/type/{type?}', 'GoodsController@searchListsType'); //根据金币范围搜索商品
    $api->post('searchlists/name/{name?}', 'GoodsController@searchListsName'); //根据商品名称
    // $api->get('searchmergelists/{type?}/{name?}', 'GoodsController@searchMergeLists'); //组合搜索
    
});
